import { Component } from "react";
import { outsideStyle } from "../utils/styles";
const styles = {
    fontSize: '30px',
    color: 'pink'
}

export default class Reactstyle extends Component {
    render() {
        return (
            <div>
                <h2>react内联样式</h2>
                <h5 style={styles}>内部书写样式</h5>
                <h5 className="fs color">类名样式</h5>
                <h5 style={{ ...outsideStyle.fs, ...outsideStyle.color }}>外部引入样式</h5>

            </div >
        )
    }
}